package com.park.common.poo;

import javax.persistence.*;

/**
 * Created by Administrator on 2017-05-06.
 */
@Entity
@Table(name = "user_sign", schema = "", catalog = "totem")
public class UserSign {
    private int signId;
    private Integer id;
    private String createTime;
    private String updateTime;
    private String signDate;

    @Id
    @Column(name = "signId")
    public int getSignId() {
        return signId;
    }

    public void setSignId(int signId) {
        this.signId = signId;
    }

    @Basic
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "createTime")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "updateTime")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserSign userSign = (UserSign) o;

        if (signId != userSign.signId) return false;
        if (id != null ? !id.equals(userSign.id) : userSign.id != null) return false;
        if (createTime != null ? !createTime.equals(userSign.createTime) : userSign.createTime != null) return false;
        if (updateTime != null ? !updateTime.equals(userSign.updateTime) : userSign.updateTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = signId;
        result = 31 * result + (id != null ? id.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "signDate")
    public String getSignDate() {
        return signDate;
    }

    public void setSignDate(String signDate) {
        this.signDate = signDate;
    }
}
